package com.ny.service;


import com.ny.entity.Admin;
import com.ny.entity.Order;
import com.ny.entity.Product;
import com.ny.entity.Student;

import java.util.List;

public interface AdminService {
    Admin selectManager(String unername,String password) throws Exception;

    Admin login(String username, String password);

    List<Student> getAllStudents();

    int addStudent(Student student);

    int updateStudent(Student student);

    int deleteStudent(int studentId);

    int addProduct(Product product);

    int updateProduct(Product product);

    int deleteProduct(int productId);

    List<Order> getAllOrders();

    int deleteOrder(int orderId);
}